const express  = require('express');
const router = express.Router();

const userHandler = require('../router_handler/user_handler');

//新增
router.post('/add', userHandler.userAdd);
// 查询
router.get('/allUsers',userHandler.userAll);
// 编辑
router.post('/edit/:id',userHandler.userEdit);
// 删除
router.post('/delete/:id',userHandler.userDelect);

module.exports = router;